package demo1;

public class Dog extends Animal{
    static{
        System.out.println("static::Dog");
    }

    {
        System.out.println("实例化代码块::Dog");
    }
   public Dog(String name, int age) {
        super(name,age);
       System.out.println("Dog构造方法");
    }

}

